|
|||||||||||||||||||
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover | |||||||||||||||||||
Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
BpelCaseImplFactory.java | - | 100% | 100% | 100% |
|
1 |
/*
|
|
2 |
* $Id: BpelCaseImplFactory.java,v 1.1 2004/12/15 14:18:09 patforna Exp $
|
|
3 |
*
|
|
4 |
* Copyright (c) 2004 Patric Fornasier, Pawel Kowalski
|
|
5 |
* Berne University of Applied Sciences
|
|
6 |
* School of Engineering and Information Technology
|
|
7 |
* All rights reserved.
|
|
8 |
*/
|
|
9 |
package bexee.model.xmltobpel;
|
|
10 |
|
|
11 |
import org.xml.sax.Attributes;
|
|
12 |
|
|
13 |
/**
|
|
14 |
* This class is used by the <a
|
|
15 |
* href="http://jakarta.apache.org/commons/digester/">Digester </a> for the
|
|
16 |
* transformation of Switch Case elements from a BPEL document into
|
|
17 |
* <code>BpelCaseImpl</code> objects. The creation of those objects is
|
|
18 |
* delegated to the <code>BPELElementFactory</code>.
|
|
19 |
*
|
|
20 |
* @author Patric Fornasier
|
|
21 |
* @author Pawel Kowalski
|
|
22 |
* @version $Revision: 1.1 $, $Date: 2004/12/15 14:18:09 $
|
|
23 |
*/
|
|
24 |
public class BpelCaseImplFactory extends AbstractObjectCreationFactory { |
|
25 |
|
|
26 |
/**
|
|
27 |
* Prepare BpelCase elemenmt values and delegate object creation to the
|
|
28 |
* <code>BPELElementFactory</code>.
|
|
29 |
*/
|
|
30 | 4 |
public Object createObject(Attributes attributes) throws Exception { |
31 | 4 |
String condition = attributes.getValue(CONDITION); |
32 | 4 |
return getElementFactory().createBpelCase(condition);
|
33 |
} |
|
34 |
|
|
35 |
} |
|